package com.infotel.chat;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SaisieUser extends JPanel {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    JTextField tfUsername;
    JTextField tfEmail;
    JTextField tfGenre;
    
    public SaisieUser() {
        JLabel lblUsername =new JLabel("Nom :");
        JLabel lblEmail =new JLabel("Email :");
        JLabel lblGenre =new JLabel("Genre :");
        
         tfUsername = new JTextField(20);
         tfEmail= new JTextField(20);
         tfGenre = new JTextField(20);
        
        this.setLayout(new BorderLayout());
        
        JPanel panneauLabel = new JPanel(new GridLayout(3,1));
        panneauLabel.add(lblUsername);
        panneauLabel.add(lblEmail);
        panneauLabel.add(lblGenre);
        
        JPanel panneauTextField = new JPanel(new GridLayout(3,1));
        panneauTextField.add(tfUsername);
        panneauTextField.add(tfEmail);
        panneauTextField.add(tfGenre);
        this.add(panneauLabel, BorderLayout.WEST);
        this.add(panneauTextField, BorderLayout.CENTER);
    }

    public JTextField getTfUsername() {
        return tfUsername;
    }

    public void setTfUsername(JTextField tfUsername) {
        this.tfUsername = tfUsername;
    }

    public JTextField getTfEmail() {
        return tfEmail;
    }

    public void setTfEmail(JTextField tfEmail) {
        this.tfEmail = tfEmail;
    }

    public JTextField getTfGenre() {
        return tfGenre;
    }

    public void setTfGenre(JTextField tfGenre) {
        this.tfGenre = tfGenre;
    }

}
